package threading;

class MyThread extends Thread {

    @Override
    public void run() {
        System.out.println("调用run(): " + this.isAlive());
    }
}
public class ThreadDemo27{
    public static void main(String[] args) throws InterruptedException {
        Thread t = new MyThread();
        System.out.println("调用start(): " + t.isAlive());
        t.start();
        t.sleep(1000);
        System.out.println("run()方法结束后: "+t.isAlive());
    }
}